package com.originskyseed.platform.log.model;

import java.io.Serializable;
import java.util.Date;

import com.originskyseed.platform.core.mongodb.bean.BaseMongo;

/**
 * 日志实体类
 */
//@Document(collection = "oper_log")
public class OperLog extends BaseMongo implements Serializable {

	/**
	 * 主键
	 */
//    @Field(value ="id")
	private String id;

	/**
	 * 用户标识
	 */
//    @Field(value ="user_id")
	private String userId;

	/**
	 * 用户名称
	 */
//    @Field(value ="user_name")
	private String userName;

	/**
	 * 访问IP
	 */
//    @Field(value ="ip")
	private String ip;

	/**
	 * 操作模块
	 */
//    @Field(value ="module")
	private String module;

	/**
	 * 操作时间
	 */
//    @Field(value ="create_time")
	private Date createTime;

	/**
	 * 操作结果(1--成功，2--失败)
	 */
//    @Field(value ="status")
	private String status;
	/**
	 * 操作记录描述
	 */
//    @Field(value ="operation_desc")
	private String operationDesc;
	/**
	 * 浏览器版本
	 */
//    @Field(value ="browner_no")
	private String brownerNo;
	/**
	 * 操作系统版本
	 */
//    @Field(value ="os_no")
	private String osNo;
	/**
	 * 记录的方法
	 */
//    @Field(value ="method")
	private String method;

	/**
	 * 参数
	 */
	private String params;
	/**
	 * 用户账号
	 */
	private String userAccount;

	/**
	 * 来源 1 后台 2 中台 3 前台
	 */
	private Integer source;

	/**
	 * 是否要记录
	 */
	private Integer isAdd;

	/**
	 * 失败原因
	 */
	private String msg;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id == null ? null : id.trim();
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId == null ? null : userId.trim();
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName == null ? null : userName.trim();
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip == null ? null : ip.trim();
	}

	public String getModule() {
		return module;
	}

	public void setModule(String module) {
		this.module = module;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status == null ? null : status.trim();
	}

	public String getOperationDesc() {
		return operationDesc;
	}

	public void setOperationDesc(String operationDesc) {
		this.operationDesc = operationDesc == null ? null : operationDesc.trim();
	}

	public String getBrownerNo() {
		return brownerNo;
	}

	public void setBrownerNo(String brownerNo) {
		this.brownerNo = brownerNo == null ? null : brownerNo.trim();
	}

	public String getOsNo() {
		return osNo;
	}

	public void setOsNo(String osNo) {
		this.osNo = osNo == null ? null : osNo.trim();
	}

	public String getMethod() {
		return method;
	}

	public void setMethod(String method) {
		this.method = method == null ? null : method.trim();
	}

	public String getUserAccount() {
		return userAccount;
	}

	public void setUserAccount(String userAccount) {
		this.userAccount = userAccount;
	}

	public Integer getSource() {
		return source;
	}

	public void setSource(Integer source) {
		this.source = source;
	}

	public Integer getIsAdd() {
		return isAdd;
	}

	public void setIsAdd(Integer isAdd) {
		this.isAdd = isAdd;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getParams() {
		return params;
	}

	public void setParams(String params) {
		this.params = params == null ? null : params.trim();
	}

	@Override
	public String toString() {
		return "OperLog{" + "id='" + id + '\'' + ", userId='" + userId + '\'' + ", userName='" + userName + '\'' + ", ip='" + ip + '\'' + ", module='" + module + '\'' + ", createTime=" + createTime + ", status='" + status + '\'' + ", operationDesc='" + operationDesc + '\'' + ", brownerNo='" + brownerNo + '\'' + ", osNo='" + osNo + '\'' + ", method='" + method + '\'' + ", userAccount='" + userAccount + '\'' +
//                ", params='" + params + '\'' +
				'}';
	}
}